POV-Ray : Newsgroups : povray.general : Doc bug - substr() : Re: Doc bug? #range - not a doc bug. Server Time
8 Aug 2024 12:24:51 EDT (-0400)
  Re: Doc bug? #range - not a doc bug.  
From: Francois Labreque
Date: 22 Feb 2001 10:29:05
Message: <3A952F9F.43B9E767@videotron.ca>
Geoff Wedig wrote:
> 
> Speaking of manual bugs, can anyone confirm that the #range feature for
> #switch is actually lower < value <= upper and not lower <= value <= upper
> like it says in the manual?

The doc is correct.

#switch( var)
    #range (1, 10)
        box{ 0, 1 pigment{ color rgb 1 }}
    #else
	sphere{ 0, 1 pigment { color rgb <1,0,0> }}
#end

creates a white box when var=1, not a red sphere as you think it would.


> 
> Geoff

-- 
Francois Labreque |   //\\    Wear an ASCII ribbon!
    flabreque     |  ||  ||   
        @         |   \\//    Support the campain
   videotron.ca        \\     against HTML e-mail
                      //\\    and news!


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.